package ejb;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import entity.RegistroEnvio;

@Stateless
public class AdministradorRegistroEnviosBean implements AdministradorRegistroEnvios
{
	@PersistenceContext(unitName = "registroenvios")
	private EntityManager em;
	
	public void registrarEnvio(RegistroEnvio registroenvio)
	{
		System.out.println("Se persistira RegistroEnvio");
	
		em.merge(registroenvio);
	}
}
